//
//  GWProgressLabel.m
//  QQ音乐
//
//  Created by qianfeng on 16/3/10.
//  Copyright © 2016年 高炜. All rights reserved.
//
#define myColor(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#import "GWProgressLabel.h"

@implementation GWProgressLabel

-(void)setProgress:(CGFloat)progress
{
    _progress =progress;
    [self setNeedsDisplay];
}
- (void)drawRect:(CGRect)rect {
    [super drawRect:rect];
    rect =CGRectMake(0, 0, self.bounds.size.width*self.progress, self.bounds.size.height);
    [myColor(80, 192, 120) set];
    
    UIRectFillUsingBlendMode(rect, kCGBlendModeSourceIn);
}


@end
